package com.mall.bargain.service;
import com.mall.common.response.CommonResponse;
import com.mall.entity.bargain.BgBargain;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 砍价列表业务逻辑层
 * @author LiJinYang
 * @version 1.0
 * @email 283006176@qq.com
 * @date 2021/07/19 16:09
 */
public interface BargainListService {
    /**
     * 查询全部
     * @return
     */
    List<BgBargain> findAll();

    /**
     * 分页查询
     * @param page
     * @param size
     * @param bgBargain
     * @return
     */
    PageInfo findPage(int page, int size, BgBargain bgBargain);

    /**
     * 根据ID逻辑删除
     * @param id
     * @return
     */
    CommonResponse delete(Long id);
}
